﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DevelopmentPFR
{
    public partial class Identification1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Logon_Click(object sender, EventArgs e)
        {
            if ((UserEmail.Text == "Hypermarche") && (UserPass.Text == "motdepasse"))
            {
                Response.Redirect("Hypermarche/Stock.aspx");
            }

            if ((UserEmail.Text == "PlateformeStockage") && (UserPass.Text == "motdepasse"))
            {
                Response.Redirect("Plateforme_Stockage/BonsCommandes.aspx");
            }

            if ((UserEmail.Text == "CentralAchat") && (UserPass.Text == "motdepasse"))
            {
                Response.Redirect("Centrale_Achat/CommandesHypermarches.aspx");
            }
            else
            {
                Msg.Text = "Combinaison invalide. Merci de recommencer.";
            }
        }
    }
}